package com.sakila.pojo.other;

import java.io.Serializable;

import org.hibernate.validator.constraints.NotBlank;


public class Name implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 8673518434389401163L;
	@NotBlank(message="Please enter your firstName")
	private String firstName;
	@NotBlank(message="Please enter your lastName")
	private String lastName;
	
	public Name(){}
	
	public Name(String firstName, String lastName) {
		super();
		this.firstName = firstName;
		this.lastName = lastName;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	@Override
	public String toString() {
		return firstName + "_" + lastName;
	}
}
